package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @author zzw
 * @date 2025/5/18
 * @description 数据统计服务
 */
public interface ReportService {

    // 用户统计
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    // 营业额统计
    TurnoverReportVO getTurnoverStatistics(LocalDate begin, LocalDate end);

    // 获取销量排名top10
    SalesTop10ReportVO getTop10(LocalDate begin, LocalDate end);

    // 获取订单统计数据
    OrderReportVO getReportOrderStatistics(LocalDate begin, LocalDate end);

    // 导出报表
    void exportBusinessData(HttpServletResponse response);
}
